public class MethodDemo15 {
    public static void main(String[] args) {
        int r = isR(2000);
        if (r == 0) {
            System.out.println(1 + 2);
        } else {
            System.out.println(1 - 2);
        }

    }

    public static int isR(int year) {
        if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            return 0;
        } else {
            return 1;
        }
    }
}
